package com.woniuxy.project115.kaer.mall.util;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

import java.util.List;

@Data
public class PageInfo {
    private long size;
    private long current;
    private long total;
    private long pages;
    private List<?> list;
    public PageInfo(){};
    public PageInfo(Page<?> page){
        this.size=page.getSize();
        this.current=page.getCurrent();
        this.pages=page.getPages();
        this.total=page.getTotal();
        this.list=page.getRecords();
    }
}
